package com.bzsg.simpleMediaPlayer.viewModel

import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import com.bzsg.simpleMediaPlayer.ui.pager.Screen
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class MainViewModel
    @Inject
    constructor() : ViewModel() {
        // 当前选中的底部导航项
        var selectedNavItem by mutableStateOf(Screen.Home.route)

        // 更新导航项
        fun updateSelectedNavItem(route: String) {
            selectedNavItem = route
        }
    }
